package com.example.exception;

import org.junit.Test;

public class FinallyTest {
    @Test
    public void test() {
        try {
            int a = 10;
            int b = 0;
            System.out.println(a / b);
        } catch (ArithmeticException e) {
            e.printStackTrace();
//            throw new RuntimeException(e);
        } catch (Exception e) {
            e.printStackTrace();
        }
        finally {
            System.out.println("hello.txt");
        }
        System.out.println("hello.txt-2");
    }
}
